<include file="App/Home/View/Public/header.html"/>
			<!-- BEGIN PAGE CONTENT-->
			<div class="row">
				<div class="col-md-12">
					<!-- BEGIN SAMPLE TABLE PORTLET-->
					<div class="portlet box blue">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-cogs"></i>公排一条线
							</div>
							<div class="tools">
								<a href="javascript:;" class="collapse">
								</a>
								<a href="#portlet-config" data-toggle="modal" class="config">
								</a>
								<a href="javascript:;" class="reload">
								</a>
								<a href="javascript:;" class="remove">
								</a>
							</div>
						</div>
						<div class="portlet-body">
							<div class="table-responsive">
								<table class="table table-bordered">
								<thead>
								<tr>
									<th>用户</th>
									<th>公排名</th>
									<th>状态</th>
								</tr>
								</thead>
								<tbody>
                            	<foreach name="list" item="vo">
								  <tr>
									<td>{$vo.account}</td>
									<td>{$vo.name}</td>
									<td>
										<eq name="vo.status" value="0">
											等待出局
											<else/>
											已出局
										</eq>
												
									</td>
									
								  </tr>
								</foreach>
								</tbody>
								</table>
							</div>
						</div>
					</div>
					<!-- END SAMPLE TABLE PORTLET-->
				</div>
			</div>
			<!-- END PAGE CONTENT-->
		</div>
	</div>
	<!-- END CONTENT -->
<include file="App/Home/View/Public/footer.html"/>
<script type="text/javascript">
var aa = 1;
 function sub(id){

 		layer.confirm('您确定要收购此条订单？', {
		  	btn: ['购买','取消'] //按钮
		}, function(){
		  	var url = "{:U('LineDown/buy')}";
	        if(aa>1){
	        	layer.msg('请等待···');
	        	return false;
	        }else{
	        	aa++;
	        	$.post(url,{'id':id},function(data){
	            	layer.msg(data.info);
	        		setTimeout(function () { 
			         	window.location.reload();
			    	}, 2000);
	        	});
	        }
		}, function(){
		  	
		});  
    }


</script>